<template>
  <div class="log-reg">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="登录" name="first">
        <Login />
      </el-tab-pane>
      <el-tab-pane label="注册" name="second">
        <Register />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Login from '../login/Login.vue'
import Register from '../register/Register.vue'
export default {
  name: 'LogReg',
  components: {
    Login,
    Register
  },
  data () {
    return {
      activeName: 'first'
    }
  },
  methods: {
    handleClick (tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style lang="scss" src="./logreg.scss">
</style>
